const merge = require("webpack-merge")
const UglifyJSPlugin = require("uglifyjs-webpack-plugin")
const common = require("./webpack.common.js")
const webpack = require("webpack")
module.exports = env => {
	console.log("NODE_ENV: ", env.NODE_ENV)
	return merge(common, {
		mode: "production",
		/* plugins: [
			new UglifyJSPlugin({
				uglifyOptions: {
					compress: {
						warnings: false,
						drop_debugger: true, //自动删除debugger
						drop_console: true //自动删除console.log
					}
				},
			}),
		] */
	})
}
